package com.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("sp_goods")
public class Good {
    @TableId(type = IdType.AUTO)
    private Integer goods_id;
    private String goods_name;
    @TableField(exist = false)
    private String goods_cat;
    private Double goods_price;
    private Integer goods_number;
    private Integer goods_weight;
    private Integer cat_id;
    private String goods_introduce;
    private String goods_big_logo;
    private String goods_small_logo;
    private Integer is_del;
    private Integer add_time;
    private Integer upd_time;
    private Integer delete_time;
    private Integer cat_one_id;
    private Integer cat_two_id;
    private Integer cat_three_id;
    private Integer hot_mumber;
    private Boolean is_promote;
    private Integer goods_state;

    @TableField(exist = false)
    private List<Pic> pics;
    @TableField(exist = false)
    private List<Attr> attrs;

    public void setGoodsCat(String goods_cat) {
        this.goods_cat = goods_cat;
    }

    public void setGoodsId(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public void setGoodsName(String goods_name) {
        this.goods_name = goods_name;
    }

    public void setGoodsPrice(Double goods_price) {
        this.goods_price = goods_price;
    }

    public void setGoodsNumber(Integer goods_number) {
        this.goods_number = goods_number;
    }

    public void setGoodsWeight(Integer goods_weight) {
        this.goods_weight = goods_weight;
    }

    public void setCatId(Integer cat_id) {
        this.cat_id = cat_id;
    }

    public void setGoodsIntroduce(String goods_introduce) {
        this.goods_introduce = goods_introduce;
    }

    public void setGoodsBigLogo(String goods_big_logo) {
        this.goods_big_logo = goods_big_logo;
    }

    public void setGoodsSmallLogo(String goods_small_logo) {
        this.goods_small_logo = goods_small_logo;
    }

    public void setIsDel(Integer is_del) {
        this.is_del = is_del;
    }

    public void setAddTime(Integer add_time) {
        this.add_time = add_time;
    }

    public void setUpdTime(Integer upd_time) {
        this.upd_time = upd_time;
    }

    public void setDeleteTime(Integer delete_time) {
        this.delete_time = delete_time;
    }

    public void setCatOneId(Integer cat_one_id) {
        this.cat_one_id = cat_one_id;
    }

    public void setCatTwoId(Integer cat_two_id) {
        this.cat_two_id = cat_two_id;
    }

    public void setCatThreeId(Integer cat_three_id) {
        this.cat_three_id = cat_three_id;
    }

    public void setHotMumber(Integer hot_mumber) {
        this.hot_mumber = hot_mumber;
    }

    public void setIsPromote(Boolean is_promote) {
        this.is_promote = is_promote;
    }

    public void setGoodsState(Integer goods_state) {
        this.goods_state = goods_state;
    }
}
